//
//  MainMenuScene.m
//  SpeedTap
//
//  Created by Chi Ho Chiu on 18/8/11.
//  Copyright 2011 Individual. All rights reserved.
//

#import "MainMenuScene.h"
#import "GameManager.h"

@implementation MainMenuScene
@synthesize mainMenuLayer;
-(id) init
{
    if( (self = [super init]) )
    {
        [self setMainMenuLayer:[MainMenuLayer node]];
        mainMenuLayer.delegate = self;
        
        [self addChild:mainMenuLayer];        
    }
    return self;
}

-(void) dealloc
{
	[mainMenuLayer release];
	
    [super dealloc];
}

-(void) onPlaySelected
{
    [[GameManager sharedGameManager] replaceScene:kGAME_SCENE_MODE_SELECT];
}

-(void) onGallerySelected
{
	//TODO
}

-(void) onCreditSelected
{
	//TODO
}

@end
